#ifndef GATEWAYLOGINCMD_H
#define GATEWAYLOGINCMD_H


#include "Command/BaseCmd.h"
#include "Protocol/CloudProtocol.h"

class GatewayLoginCmd  : public BaseCmd
{
    Q_OBJECT
public:
    enum{FunctionCode = CloudProtocol::GatewayLogin};

    Q_INVOKABLE explicit GatewayLoginCmd(QObject *parent = 0);

    Package toPackage();
    void unPackage(Package package);

    QByteArray loginTime() const;
    void setLoginTime(const QByteArray &loginTime);

    QString mac() const;
    void setMac(const QString &mac);

private:
    QByteArray m_loginTime;
    QString m_mac;
};

#endif // GATEWAYLOGINCMD_H
